import request from "../request";

// 获取精品歌单标签列表
export const getTopHighqualityTag = () =>{
    return request({
        url:"/playlist/highquality/tags"
    })
}
// 获取顶部精品歌单
export const getTopHighquality = (cat) =>{
    return request({
        url:"/top/playlist/highquality",
        params:{
            cat,
            limit:1
        }
    })
}
// 获取所有的歌单标签
export const getAllTag = () =>{
    return request({
        url:"/playlist/catlist"
    })
}

// 获取所有歌单分类标签
export const getHotTag = () => {
    return request({
        url:"/playlist/hot"
    })
}
// 获取歌单
export const getSongList = (cat,offset) =>{
    return request({
        url:"/top/playlist",
        params:{
            cat,
            offset,
            limit:48
        }
    })
}